﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;

public class CameraManager : MonoBehaviour 
{
	public GameObject[] cameras = new GameObject[3];
	public enum cam
	{
		limbo,
		death,
		play,
	}
	public void Limbo()
	{
		GameFunctions.OpenMenu(cameras,(int)cam.limbo);
	}

	public void Death()
	{
		GameFunctions.OpenMenu(cameras,(int)cam.death);
	}

	public void Play()
	{
		GameFunctions.OpenMenu(cameras,(int)cam.play);
		foreach (GameObject obj in GameObject.FindGameObjectsWithTag("MainCamera"))
		{	
			if (!cameras.Contains(obj))
			{
				obj.SetActive(false);
			}
		}
	}
}
